package club.pchome.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import club.pchome.dto.Result;
import club.pchome.model.AutoSign;
import club.pchome.service.AutoSignService;
import club.pchome.service.UserInfoService;
import club.pchome.util.PageUtil;

@RestController
public class UserAdminController extends BaseController{

	@Autowired
	AutoSignService autoSignService;

	@Autowired
	UserInfoService userInfoService;
	
	@PostMapping(value = "/userList")
	public Result<PageUtil<AutoSign>> userList(String currPage, String pageSize){
//		List<AutoSign> list = autoSignService.getAccountList();
		
		PageUtil<AutoSign> pu = new PageUtil<AutoSign>(currPage, pageSize);
		return Result.initSuccessResult(autoSignService.getAccountList(pu));
	}
}
